package company.meituan_F;

import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;

// 8
// 11 12 13 14 22 24 33 44
// 不要一直检查代码，打印输出结果看看
// 看看输出结果是否符合预期
// 一般都是代码写错了
public class M5 {

    static Set<String> set = new HashSet<>();

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int m = sc.nextInt();//商品个数 4
        int n = sc.nextInt();//空间 2
        for (int i = 1; i <= m; i++) {
            helper(n, i, m, "");
        }
        System.out.println(set.size());
    }

    private static void helper(int n, int money, int m, String s) {
        if (n == 0) {
            set.add(s);
        } else {
            for (int i = money; i <= m; i += money) {
                helper(n - 1, i, m, s + " " + money);
            }
        }
    }
}
